package com.ruoyi.tb.lmt.service;

import com.ruoyi.tb.lmt.domain.OilSampleDetection;
import com.ruoyi.tb.lmt.domain.vo.OilSampleDetectionVo;
import com.ruoyi.tb.lmt.domain.bo.OilSampleDetectionBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.time.LocalDate;
import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * 油压减震器Service接口
 *
 * @author ruoyi
 * @date 2023-12-20
 */
public interface IOilSampleDetectionService {

    /**
     * 查询油压减震器
     */
    OilSampleDetectionVo queryById(Long id);

    /**
     * 查询油压减震器列表
     */
    TableDataInfo<OilSampleDetectionVo> queryPageList(OilSampleDetectionBo bo, PageQuery pageQuery);

    /**
     * 查询油压减震器列表
     */
    List<OilSampleDetectionVo> queryList(OilSampleDetectionBo bo);

    /**
     * 新增油压减震器
     */
    Boolean insertByBo(OilSampleDetectionBo bo);

    /**
     * 修改油压减震器
     */
    Boolean updateByBo(OilSampleDetectionBo bo);

    /**
     * 校验并批量删除油压减震器信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    boolean queryExistsByLmtIdAndTestDate(String oilDate, String oilId, String oilType);


    List<OilSampleDetectionVo> selectOilByLmtNumber(String lmtNumber, Date startDate, Date endDate);

    List<OilSampleDetection> selectListByDate(LocalDate date);
}
